<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Dinner.Models.Item>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Item Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Item Index</h2>

    

    <ul>

	<% foreach (var item in Model) { %>
		<li>
		<%= Html.ActionLink(item.title, "Details",
			new { id = item.item_id }) %>
		</li>
	<% } %>

    </ul>


    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

